﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Computer
    {
        private string brond;
        private Usb usb1;
        private Usb usb2;
        public string Brond
        {
            get { return this.brond; }
            set { this.brond = value; }
        }
        internal Usb Usb1
        {
            get { return this.usb1; }
            set { this.usb1 = value; }
        }
      internal Usb Usb2
        {
            get { return this.usb2; }
            set { this.usb2 = value; }
        }
        public Computer(string brond)
        {
            this.Brond = brond;
        }
        public void Info()
        {
            Console.WriteLine("{0}开机中",this.brond);
        }
        public void Read1()
        {
            this.usb1.read();
            this.usb2.read();
        }
        public void Write1()
        {
            this.usb1.write();
            this.usb2.write();
        }
        public void End()
        {
            Console.WriteLine("{0}关机中");
        }
    }
}
